package com.eric.service;

import cn.dev33.satoken.util.SaResult;
import com.eric.domain.dto.SupplierDTO;
import com.eric.domain.vo.SupplierVO;
import com.mybatisflex.core.service.IService;
import com.eric.domain.po.Supplier;

import java.util.List;

/**
 *  服务层。
 *
 * @author eric.deng
 * @since 2025-03-05
 */
public interface SupplierService extends IService<Supplier> {

    SaResult saveOne(SupplierVO supplier);

    SaResult getListByPage(Integer cur, Integer pageSize);

  SaResult updateByIdService(SupplierDTO supplierDTO);

    SaResult getSupplierListByNameService(String name,Integer cur,Integer pageSize);

    SaResult getSupplierListByNameCountService(String name);
}
